import base from "./base"; // 导入接口域名列表
import axios from "../http"; // 导入http中创建的axios实例
import qs from "qs"; // 根据需求是否导入qs模块
const getCoin = {
  getCoinMachineList(params) {
    return axios.post(
      `${base.bd}/admin/coin_machine/lists`,
      qs.stringify(params)
    );
  },
  delcoinMachine(params) {
    return axios.post(
      `${base.bd}/admin/coin_machine/del`,
      qs.stringify(params)
    );
  },
  SaveAddCoinMachine(params) {
    return axios.post(
      `${base.bd}/admin/coin_machine/saveadd`,
      qs.stringify(params)
    );
  },
  DetailgetCoin(params) {
    return axios.post(
      `${base.bd}/admin/coin_machine/edit`,
      qs.stringify(params)
    );
  },
  SaveEditCoinMachine(params) {
    return axios.post(
      `${base.bd}/admin/coin_machine/saveedit`,
      qs.stringify(params)
    );
  },
  lockCoinMachine(params) {
    return axios.post(
      `${base.bd}/admin/coin_machine/check_show`,
      qs.stringify(params)
    );
  },

  getCoinRechargeList(params) {
    return axios.post(
      `${base.bd}/admin/coin_recharge/lists`,
      qs.stringify(params)
    );
  },
  delcoinRecharge(params) {
    return axios.post(
      `${base.bd}/admin/coin_recharge/del`,
      qs.stringify(params)
    );
  },
  SaveAddCoinRecharge(params) {
    return axios.post(
      `${base.bd}/admin/coin_recharge/saveadd`,
      qs.stringify(params)
    );
  },
  DetailCoinRecharge(params) {
    return axios.post(
      `${base.bd}/admin/coin_recharge/edit`,
      qs.stringify(params)
    );
  },
  SaveEditCoinRecharge(params) {
    return axios.post(
      `${base.bd}/admin/coin_recharge/saveedit`,
      qs.stringify(params)
    );
  },

  getCoinWithdrawList(params) {
    return axios.post(
      `${base.bd}/admin/coin_withdraw/lists`,
      qs.stringify(params)
    );
  },
  delcoinWithdraw(params) {
    return axios.post(
      `${base.bd}/admin/coin_withdraw/del`,
      qs.stringify(params)
    );
  },
  SaveAddCoinWithdraw(params) {
    return axios.post(
      `${base.bd}/admin/coin_withdraw/saveadd`,
      qs.stringify(params)
    );
  },
  DetailCoinWithdraw(params) {
    return axios.post(
      `${base.bd}/admin/coin_withdraw/edit`,
      qs.stringify(params)
    );
  },
  SaveEditCoinWithdraw(params) {
    return axios.post(
      `${base.bd}/admin/coin_withdraw/saveedit`,
      qs.stringify(params)
    );
  },

  getCoinPriceList(params) {
    return axios.post(
      `${base.bd}/admin/coin_price/lists`,
      qs.stringify(params)
    );
  },
  delcoinPrice(params) {
    return axios.post(`${base.bd}/admin/coin_price/del`, qs.stringify(params));
  },
  SaveAddCoinPrice(params) {
    return axios.post(
      `${base.bd}/admin/coin_price/saveadd`,
      qs.stringify(params)
    );
  },
  DetailCoinPrice(params) {
    return axios.post(`${base.bd}/admin/coin_price/edit`, qs.stringify(params));
  },
  SaveEditCoinPrice(params) {
    return axios.post(
      `${base.bd}/admin/coin_price/saveedit`,
      qs.stringify(params)
    );
  },
  lockCoinPrice(params) {
    return axios.post(
      `${base.bd}/admin/coin_price/check_show`,
      qs.stringify(params)
    );
  },

  getCoinGrade(params) {
    return axios.post(
      `${base.bd}/admin/coin_rating/lists`,
      qs.stringify(params)
    );
  },
  addCoinGrade(params) {
    return axios.post(
      `${base.bd}/admin/coin_rating/saveadd`,
      qs.stringify(params)
    );
  },
  delCoinGrade(params) {
    return axios.post(`${base.bd}/admin/coin_rating/del`, qs.stringify(params));
  },
  editCoinGrade(params) {
    return axios.post(
      `${base.bd}/admin/coin_rating/saveedit`,
      qs.stringify(params)
    );
  },

  getCoinRechargeList(params) {
    return axios.post(
      `${base.bd}/admin/coin_recharge/lists`,
      qs.stringify(params)
    );
  },
  delcoinRecharge(params) {
    return axios.post(
      `${base.bd}/admin/coin_recharge/del`,
      qs.stringify(params)
    );
  },
  SaveAddCoinRecharge(params) {
    return axios.post(
      `${base.bd}/admin/coin_recharge/saveadd`,
      qs.stringify(params)
    );
  },
  DetailCoinRecharge(params) {
    return axios.post(
      `${base.bd}/admin/coin_recharge/edit`,
      qs.stringify(params)
    );
  },
  SaveEditCoinRecharge(params) {
    return axios.post(
      `${base.bd}/admin/coin_recharge/saveedit`,
      qs.stringify(params)
    );
  },

  getCoinWithdrawList(params) {
    return axios.post(
      `${base.bd}/admin/coin_withdraw/lists`,
      qs.stringify(params)
    );
  },
  delcoinWithdraw(params) {
    return axios.post(
      `${base.bd}/admin/coin_withdraw/del`,
      qs.stringify(params)
    );
  },
  SaveAddCoinWithdraw(params) {
    return axios.post(
      `${base.bd}/admin/coin_withdraw/saveadd`,
      qs.stringify(params)
    );
  },
  DetailCoinWithdraw(params) {
    return axios.post(
      `${base.bd}/admin/coin_withdraw/edit`,
      qs.stringify(params)
    );
  },
  SaveEditCoinWithdraw(params) {
    return axios.post(
      `${base.bd}/admin/coin_withdraw/change_status`,
      qs.stringify(params)
    );
  },

  getCoinTeamList(params) {
    return axios.post(`${base.bd}/admin/coin_team/lists`, qs.stringify(params));
  },
  SaveAddCoinTeam(params) {
    return axios.post(
      `${base.bd}/admin/coin_team/saveadd`,
      qs.stringify(params)
    );
  },
  delCoinTeam(params) {
    return axios.post(`${base.bd}/admin/coin_team/del`, qs.stringify(params));
  },
  DetailCoinTeam(params) {
    return axios.post(`${base.bd}/admin/coin_team/edit`, qs.stringify(params));
  },
  SaveEditCoinTeam(params) {
    return axios.post(
      `${base.bd}/admin/coin_team/saveedit`,
      qs.stringify(params)
    );
  },

  getCoinOrderList(params) {
    return axios.post(
      `${base.bd}/admin/coin_order/lists`,
      qs.stringify(params)
    );
  },
  getCoinOrderEdit(params) {
    return axios.post(`${base.bd}/admin/coin_order/edit`, qs.stringify(params));
  },
  getc2cbuyList(params) {
    return axios.post(`${base.bd}/admin/c2c_buy/lists`, qs.stringify(params));
  },
  getc2cbuyEdit(params) {
    return axios.post(`${base.bd}/admin/c2c_buy/edit`, qs.stringify(params));
  },

  getC2cOrderList(params) {
    return axios.post(`${base.bd}/admin/c2c_order/lists`, qs.stringify(params));
  },
  getC2cOrderEdit(params) {
    return axios.post(`${base.bd}/admin/c2c_order/edit`, qs.stringify(params));
  },

  getC2cComplainList(params) {
    return axios.post(
      `${base.bd}/admin/c2c_complain/lists`,
      qs.stringify(params)
    );
  },
  getC2cComplainEdit(params) {
    return axios.post(
      `${base.bd}/admin/c2c_complain/edit`,
      qs.stringify(params)
    );
  },
  setC2cComplain(params) {
    return axios.post(
      `${base.bd}/admin/c2c_order/saveedit`,
      qs.stringify(params)
    );
  },
  gettransfer(params) {
    return axios.post(`${base.bd}/admin/transfer/lists`, qs.stringify(params));
  },
  getexchange(params) {
    return axios.post(
      `${base.bd}/admin/coin_exchange/lists`,
      qs.stringify(params)
    );
  },
  cexiaoC2cOrder(params) {
    return axios.post(`${base.bd}/admin/c2c_buy/cancel`, qs.stringify(params));
  },
  get_mustlist(params) {
    return axios.post(`${base.bd}/admin/coin_win/lists`, qs.stringify(params));
  },

  //虚拟币钱包
  get_pricelist(params) {
    return axios.post(
      `${base.bd}/admin/block/coin_currency_list`,
      qs.stringify(params)
    );
  },
  get_walletlist(params) {
    return axios.post(
      `${base.bd}/admin/block/block_wallet_lists`,
      qs.stringify(params)
    );
  },
  get_rechargelist(params) {
    return axios.post(
      `${base.bd}/admin/block/block_recharge_lists`,
      qs.stringify(params)
    );
  },
  get_withdrawlist(params) {
    return axios.post(
      `${base.bd}/admin/block/block_withdraw_lists`,
      qs.stringify(params)
    );
  },
  get_releaselist(params) {
    return axios.post(
      `${base.bd}/admin/block/block_freed_lists`,
      qs.stringify(params)
    );
  },
  getCoinListDetails(params) {
    return axios.post(
      `${base.bd}/admin/coin_currency/lists`,
      qs.stringify(params)
    );
  },
  changeShow(params) {
    return axios.post(
      `${base.bd}/admin/coin_currency/is_show`,
      qs.stringify(params)
    );
  },
  getBz(params) {
    ///admin/coin_currency/lists_open
    return axios.post(
      `${base.bd}/admin/coin_currency/lists_open`,
      qs.stringify(params)
    );
  },
  changeTransation(params) {
    return axios.post(
      `${base.bd}/admin/transaction_page/saveedit`,
      qs.stringify(params)
    );
  },
  getTransationConfig(params) {
    return axios.post(
      `${base.bd}/admin/transaction_page/index`,
      qs.stringify(params)
    );
  },
  changeTransationSort(params) {
    return axios.post(
      `${base.bd}/admin/coin_currency/sort_by_number`,
      qs.stringify(params)
    );
  },
  get_c2c_order_detail(params) {
    return axios.post(
      `${base.bd}/admin/c2c_order/order_money_list`,
      qs.stringify(params)
    );
  },
  draw_coin(params) {
    return axios.post(
      `${base.bd}/admin/block/block_usdt_withdraw`,
      qs.stringify(params)
    );
  },
  get_coin_currency_edit(params) {
    return axios.post(
      `${base.bd}/admin/coin_currency/edit`,
      qs.stringify(params)
    );
  },
  get_coin_currency_editsave(params) {
    return axios.post(
      `${base.bd}/admin/coin_currency/saveedit`,
      qs.stringify(params)
    );
  },
  get_coin_currency_coin(params) {
    return axios.post(
      `${base.bd}/admin/coin_currency/coin`,
      qs.stringify(params)
    );
  },
  get_coin_lever_lists(params) {
    return axios.post(
      `${base.bd}/admin/coin_lever/lists`,
      qs.stringify(params)
    );
  },
  
  get_handle_record(params) {
    return axios.post(
      `${base.bd}/admin/block/block_sxf_lists`,
      qs.stringify(params)
    );
  },
  get_collection_record(params) {
    return axios.post(
      `${base.bd}/admin/block/block_gj_lists`,
      qs.stringify(params)
    );
  },
};
export default getCoin;
